-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(docker): add web, control-center in docker-compose #4190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @Dhanus3133!
Also, how is the user expected to configure the publishable and API keys, and the remaining URLs?
Resolved it. |
I noticed that one of the PRs closely mirrors mine. Just wanted to bring this matter to your attention. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you been able to test this out locally, and verified that the demo app loads correctly?
env_file: | ||
- ./.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide an example of what this .env
file would contain? Including placeholder values should be good enough.
@SanchithHegde do you know why this happens? |
If you're running the web client and demo app within a Docker container, and use |
- apiBaseUrl=http://hyperswitch-server:8080 | ||
- sdkBaseUrl=http://hyperswitch-web:9050 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't work since the communication is initiated via browser here and not via the docker container
EXPOSE 5252 | ||
EXPOSE 9060 | ||
|
||
CMD concurrently "npm run start:dev" "npm run start:playground" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this npm command has been removed sometime ago here.
RUN sed -i '/hot: true,/a \ host: "0.0.0.0",' webpack.dev.js | ||
RUN sed -i '/hot: true,/a \ host: "0.0.0.0",' Hyperswitch-React-Demo-App/webpack.dev.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might not be needed since after this.
hyperswitch-server: | ||
condition: service_started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dhanus3133 can you remove this since we want the option to run this along with local server.
i.e using the local cargo run
along with docker services for hyperswitch-web
& hyperswitch-control-center
.
depends_on: | ||
hyperswitch-server: | ||
condition: service_started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dhanus3133 can you remove this since we want the option to run this along with local server.
i.e using the local cargo run along with docker services for hyperswitch-web & hyperswitch-control-center.
- router_net | ||
environment: | ||
- apiBaseUrl=http://hyperswitch-server:8080 | ||
- sdkBaseUrl=http://hyperswitch-web:9050 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sdkBaseUrl should point to the js assets, in this case it would be sdkBaseUrl=http://<SDK_SERVICE>/HyperLoader.js
Added hyperswitch-web and hyperswitch-control-center in docker-compose
Type of Change
Description
Two new services were added to start the SDK, demo, and control center automatically within docker-compose.
Solves #4110
Additional Changes